var loading = {
    elem:null,
    show:function(){
        var loadModal = '<div id="myLoading" class="loadModal">'+
            '<div class="transparent-modal-content">'+
            '<div class="omipay-icon"><img src="plugins/loading-mobile/img/logo.png"></div>'+
            '<p class="dot-progress"><span>.</span><span>.</span><span>.</span></p>'+
            '</div></div>';
        $('body').append(loadModal);
        this.elem = $("#myLoading");
    },
    hidden:function(){
        this.elem.animate({
            opacity:0
        },500,function(){$("#myLoading").remove()})
    }
};